/**
 * @file
 * @description 权限模块接口文件
 */

import request from './request'
/**
 * 
 * @returns 
 * @description 获取所有菜单
 */
export const getMenus = () => request.get('menus');

/**
 *  @description 获取角色列表
 * @returns 
 */
export const getRoles = () => request.get('roles');
/**
 * 
 * @param {Number} id当前用户ID 
 * @param {*} rid 
 * @returns 
 *  @description 修改角色
 */
export const updateRole = (id,rid) => request.put(`users/${id}/role`,{rid});